package com.guigu.www.controller.yinBo;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.guigu.www.dao.bean.TMemberDynamicinfo;
import com.guigu.www.service.TMemberDynamicinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 * 会员动态信息表 前端控制器
 * </p>
 *
 * @author abo
 * @since 2021-06-24
 */
@RestController
@CrossOrigin
@RequestMapping("/tMemberDynamicinfo")
public class TMemberDynamicinfoController {

    @Autowired
    TMemberDynamicinfoService tMemberDynamicinfoService;

    @GetMapping("/{id}")
    public TMemberDynamicinfo q(@PathVariable("id") int id){
        EntityWrapper<TMemberDynamicinfo> wrapper = new EntityWrapper<TMemberDynamicinfo>();
        wrapper.eq("t_member_id",id);

        TMemberDynamicinfo dynamicinfo = tMemberDynamicinfoService.selectOne(wrapper);
        return dynamicinfo;
    }

}

